package org.lonetree.tc.core.id;


/**
 * A NaturalIdentifiableItem is one that has a natural way to identify it - one
 * that has meaning for end users (e.g. ISBN for a book, an ID for a course that
 * students use to refer to a university course, etc). It cannot be constructed
 * with a null identifier since there is already a sensical identifier in
 * existance that can be used to identify the item when the item is created.
 */
public abstract class NaturaldentifiableItem extends IdentifiableItem{

	private ValidatedIdentifier identifier;
	
	protected NaturaldentifiableItem(ValidatedIdentifier identifier){
		checkIdentifier(identifier);
		
		this.identifier = identifier;
	}
	
	@Override
	protected ValidatedIdentifier getIdentifier(){
		return identifier;
	}
}
